<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Simpla Admin | Sign In by http://s.21514.com</title>
<!--                       CSS                       -->
<!-- Reset Stylesheet -->
<link rel="stylesheet" href="__PUBLIC__/Admin/Css/reset.css" type="text/css" media="screen" />
<!-- Main Stylesheet -->
<link rel="stylesheet" href="__PUBLIC__/Admin/Css/style.css" type="text/css" media="screen" />
<!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
<link rel="stylesheet" href="__PUBLIC__/Admin/Css/invalid.css" type="text/css" media="screen" />
<script type="text/javascript" src="/Public/Js/jquery.js"></script>
</head>
<body id="login">
<div id="login-wrapper" class="png_bg">
  <div id="login-top">
    <h1>Simpla Admin</h1>
    <!-- Logo (221px width) -->
    <a href="http://http://s.21514.com"><img id="logo" src="__PUBLIC__/Admin/Images/logo.png" alt="Simpla Admin logo" /></a> </div>
  <!-- End #logn-top -->
  <div id="login-content">
    <form name="form1" id="form1" action="/Home/index.php/User/Adminlogins" method="post">
    <input type="hidden" name="checkout" id="checkout" value="1">
      <div class="notification information png_bg">
        <div> Just click "Sign In". No password needed. </div>
      </div>
      <p>
        <label>用户名</label>
        <input class="text-input" name="name" id="name" type="text" />
      </p>
      <div class="clear"></div>
      <p>
        <label>密&nbsp;&nbsp;码</label>
        <input class="text-input" type="password" name="pwd" id="pwd" />
      </p>
      <div class="clear"></div>
      <p>
        <label style="width:88px;">验证码</label>
        <input class="text-input"  style="width: 50px;float: left;" type="text" name="code" id="code" size="5"></input>
        &nbsp; &nbsp;<img id="VerifyImg" src="<?php echo U('User/Verify/');?>" />
      </p>
      <div class="clear"></div>
      <p id="remember-password">
        <input type="checkbox" />
        Remember me </p>
      <div class="clear"></div>
      <p>
        <input class="button" type="submit" value="Sign In" />
      </p>
    </form>
  </div>
  <!-- End #login-content -->
</div>
<!-- End #login-wrapper -->
</body>
<script type="text/javascript">
$("#sbt").click(function(){			
	if($("#name").val()=="" || $("#pwd").val()=="")
	{
		alert('用户名以及密码不能为空');
		return false;
	}
	if($("#code").val()==""){
		alert('验证码不能为空');
		return false;				
	}
});
$("#VerifyImg").click(function(){
	//重载验证码
	var timenow = new Date().getTime();
	document.getElementById('VerifyImg').src= "/Home/index.php/User/Verify/"+timenow;
})
</script>
</html>